package edu.zqu.specialty.project.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 本专业课程安排，分配到每一个学期
 * </p>
 *
 * @author 郭泽鹏
 * @since 2020-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SpecialtyCourseSemesterAllocation对象", description="专业模块：本专业课程安排，分配到每一个学期")
public class SpecialtyCourseSemesterAllocation implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "专业可以修读的课程的清单id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "学校id")
    private Long collegeId;

    @ApiModelProperty(value = "专业id")
    private Long specialtyId;

    @ApiModelProperty(value = "课程id")
    private Long courseId;

    @ApiModelProperty(value = "专业要修读的课程清单id")
    private Integer specialtyCourseId;

    @ApiModelProperty(value = "在本专业安排在第几学期")
    private Integer semester;

    @ApiModelProperty(value = "在本专业学习本课程所得学分")
    private Integer credits;

    @ApiModelProperty(value = "在本专业每周安排多少学时")
    private Integer period;

    @ApiModelProperty(value = "在本专业需用总学时")
    private Integer totalHour;

    @ApiModelProperty(value = "在本专业是否骨干课程")
    private Boolean mainCourse;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "操作者")
    private Long byWho;

    @ApiModelProperty(value = "本记录是否有效")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "历史版本")
    @Version
    private Long lastVersion;


}
